package edu.fjnu.order.view;

import javax.swing.JFrame;
import javax.swing.JTabbedPane;

@SuppressWarnings("serial")
public class OrderManagerFrame extends JFrame{

	private static final String TITLE = "订单管理系统";
	
	private JTabbedPane tabbedPane;
	
	private String [] tabTitles = { "系统用户管理", "客户管理", "产品管理",
			"员工管理", "订单管理", "统计分析", "系统维护" };
	
	public OrderManagerFrame(){
		init();
	}

	private void init() {
		tabbedPane = new JTabbedPane();
		
		tabbedPane.addTab(tabTitles[3], new EmployeeManagePanel());
		
		add(tabbedPane);
		setTitle(TITLE);
		//TODO 大小 - 硬编码
		setSize(800, 600);
		setResizable(false);
		setLocationRelativeTo(null);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setVisible(true);
	}
}
